// #include "stm32_hal_legacy.h"
// #include "stm32f1xx_hal_rcc.h"
#include "stm32f1xx_hal.h"
#include "stm32f1xx_hal_uart.h"
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#define u8  uint8_t
#define u16 uint16_t
#define u32 uint32_t
#define CMD_BUFFER_LEN 210
UART_HandleTypeDef huart2;
void USART1_UART_Init(void);
// extern void HAL_UART_IRQHandler(UART_HandleTypeDef *huart);
void USART1_IRQHandler(void);

void Debug_printf (char *fmt, ...);

